package com.kinyx.framework.reflect;

import java.util.HashMap;
import java.util.Map;

import org.junit.Test;

public class KBeanUtils_Tester_copyProperties3 extends KBeanUtils_Tester_copyProperties_SUPER {

	@Test
	public void testA_null() {
		final Map<String, Object> from = new HashMap<>();
		this.checkNull(from);

		final A to = new A();
		KBeanUtils.copyProperties(from, to);
		this.checkNull(to);
	}

	@Test
	public void testB_null() {
		final Map<String, Object> from = new HashMap<>();
		this.checkNull(from);

		final B to = new B();
		KBeanUtils.copyProperties(from, to);
		this.checkNull(to);
	}

	@Test
	public void testA() {
		final Map<String, Object> from = new HashMap<>();
		this.initA(from);
		this.checkA(from);

		final A to = new A();
		KBeanUtils.copyProperties(from, to);
		this.check(to);
	}

	@Test
	public void testB() {
		final Map<String, Object> from = new HashMap<>();
		this.initB(from);
		this.checkB(from);

		final B to = new B();
		KBeanUtils.copyProperties(from, to);
		this.check(to);
	}

}
